package com.book.service;

import com.book.dao.adminDao;
import com.book.dao.borrowInfoDao;
import com.book.po.Admin;
import com.book.po.BorrowInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class borrowInfoService {
    @Autowired
    private borrowInfoDao borrowInfoDao;

    public BorrowInfo borrowInfo_select(Integer borrowId) {
        return borrowInfoDao.borrowInfo_select(borrowId);
    }


    public String borrowInfo_controller(BorrowInfo borrowInfo) {
        if (borrowInfoDao.borrowInfo_controller(borrowInfo) != 0) {
            return "续借成功";
        } else {
            return "续借失败";
        }
    }


}
